﻿using IOA.MES.DataAccess.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IOA.MES.Business
{
    /// <summary>
    /// 参数设置管理（错误代码：113001）
    /// </summary>
    public class ParaSettingsMgr
    {
        /// <summary>
        /// 查询所有站点
        /// </summary>
        /// <returns>站点列表</returns>
        public List<KeyValuePair<SiteType, string>> QuerySiteTypes()
        {
            var types = new List<KeyValuePair<SiteType, string>>();
            foreach (int myCode in Enum.GetValues(typeof(SiteType)))
            {
                types.Add(new KeyValuePair<SiteType, string>((SiteType)myCode, EnumConvert.ToDesc((SiteType)myCode)));
            }
            return types;
        }
    }
}
